package com.cntcdt.api.service.impl;

import java.util.List;

import com.cntcdt.api.db.dao.DeviceExceptionDao;
import com.cntcdt.api.db.model.DeviceExceptionModel;
import com.cntcdt.api.service.DeviceExceptionService;

public class DeviceExceptionServiceImpl implements DeviceExceptionService {

	@Override
	public List<DeviceExceptionModel> findByTerminal(String terminal,int sortTime) {
		return DeviceExceptionDao.getInstance().findByTerminal(terminal, sortTime);
	}

	@Override
	public List<DeviceExceptionModel> findByErrorPosition(String terminal) {
		return DeviceExceptionDao.getInstance().findByErrorPosition(terminal);
	}

}
